const goodColumns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "商品编号",
    dataIndex: "goodsCode",
    key: "goodsCode",
    align: "center",
  },
  {
    title: "商品名称",
    dataIndex: "goodsName",
    key: "goodsName",
    align: "center",
  },
  {
    title: "商品规格",
    key: "specifications",
    dataIndex: "specifications",
    align: "center",
  },
  {
    title: "加工单数量",
    key: "planDemandQuantityNum",
    dataIndex: "planDemandQuantityNum",
    align: "center",
  },
  {
    title: "已备料数量",
    key: "totalMaterialPrepareCount",
    dataIndex: "totalMaterialPrepareCount",
    align: "center",
  },
  {
    title: "需要备料数量",
    key: "needMaterialCount",
    dataIndex: "needMaterialCount",
    align: "center",
  },

  
  {
    title: "库位",
    key: "shelfName",
    dataIndex: "shelfName",
    align: "center",
    scopedSlots: { customRender: 'shelfName' },

  },
];

const wareColumns = [
  {
    title: "仓库名称",
    dataIndex: "wareHouseName",
    key: "wareHouseName",
    align: "center",
    // fixed: 'left'
  },
  {
    title: "仓库负责人",
    dataIndex: "wareHouseManager",
    key: "wareHouseManager",
    align: "center",
  },
  {
    title: "仓库编号",
    dataIndex: "wareHouseNumber",
    key: "wareHouseNumber",
    align: "center",
  },
  {
    title: "仓库地址",
    dataIndex: "wareHouseAddress",
    key: "wareHouseAddress",
    align: "center",
  },
  {
    title: "仓库类型",
    dataIndex: "wareHouseTypeName",
    key: "wareHouseTypeName",
    align: "center",
  },
];

const wareResumeColumns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "出库单号",
    dataIndex: "extockNum",
    key: "extockNum",
    align: "center",
  },
  {
    title: "备料单号",
    dataIndex: "pickListNum",
    key: "pickListNum",
    align: "center",
  },
  {
    title: "机台",
    dataIndex: "equipmentName",
    key: "equipmentName",
    align: "center",
  },
  {
    title: "仓库经办人",
    dataIndex: "createdBy",
    key: "createdBy ",
    align: "center",
  },
  {
    title: "签收人",
    dataIndex: "receiveMaterialUsername",
    key: "receiveMaterialUsername",
    align: "center",
  },
  {
    title: "操作",
    width: 300,
    dataIndex: "action",
    align: "center",
    scopedSlots: { customRender: "action" },
  },
];

const goodResumeColumns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "商品编号",
    dataIndex: "goodsCode",
    key: "goodsCode",
    align: "center",
  },
  {
    title: "商品名称",
    dataIndex: "goodsName",
    key: "goodsName",
    align: "center",
  },
  {
    title: "商品规格",
    key: "specifications",
    dataIndex: "specifications",
    align: "center",
  },
  {
    title: "加工单数量",
    key: "planDemandQuantityNum",
    dataIndex: "planDemandQuantityNum",
    align: "center",
  },

  {
    title: "已备料数量",
    key: "totalMaterialPrepareCount",
    dataIndex: "totalMaterialPrepareCount",
    align: "center",
  },
  {
    title: "需要备料数量",
    key: "needMaterialCount",
    dataIndex: "needMaterialCount",
    align: "center",
  },
 
  {
    title: "库位",
    key: "shelfName",
    dataIndex: "shelfName",
    align: "center",

  },
];

const wareHouseColumns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "商品编号",
    dataIndex: "goodsCode",
    key: "goodsCode",
    align: "center",
  },
  {
    title: "商品名称",
    dataIndex: "goodsName",
    key: "goodsName",
    align: "center",
  },
  {
    title: "库位",
    key: "shelfName",
    dataIndex: "shelfName",
    align: "center",
  },
  {
    title: "库位数量",
    key: "quantity",
    dataIndex: "quantity",
    align: "center",
  },
];

const wareDesColumns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "商品编号",
    dataIndex: "goodsCode",
    key: "goodsCode",
    align: "center",
  },
  {
    title: "商品名称",
    dataIndex: "goodsName",
    key: "goodsName",
    align: "center",
  },
  {
    title: "库位",
    key: "shelfName",
    dataIndex: "shelfName",
    align: "center",
  },
  {
    title: "库位数量",
    key: "quantity",
    dataIndex: "quantity",
    align: "center",
  },
  {
    title: "领料数量",
    key: "materialPrepareCount",
    dataIndex: "materialPrepareCount",
    align: "center",
    scopedSlots: { customRender: "materialPrepareCount" },
  },
  {
    title: "操作",
    width: 300,
    dataIndex: "action",
    align: "center",
    scopedSlots: { customRender: "action" },
  },
];

export {
  goodColumns,
  wareColumns,
  wareResumeColumns,
  goodResumeColumns,
  wareHouseColumns,
  wareDesColumns,
};
